.PHONY: mock
mock:
	@mockgen -source=E:\GoProject\src\basic-go\webook\internal\service\code.go -package=svcmocks -destination=E:\GoProject\src\basic-go\webook\internal\service\mocks\code.mock.go
	@mockgen -source=E:\GoProject\src\basic-go\webook\internal\service\article.go -package=svcmocks -destination=E:\GoProject\src\basic-go\webook\internal\service\mocks\article.mock.go
	@mockgen -source=E:\GoProject\src\basic-go\webook\internal\service\user.go -package=svcmocks -destination=E:\GoProject\src\basic-go\webook\internal\service\mocks\user.mock.go
	@mockgen -source=E:\GoProject\src\basic-go\webook\internal\repository\user.go -package=repomocks -destination=E:\GoProject\src\basic-go\webook\internal\repository\mocks\user.mock.go
	@mockgen -source=E:\GoProject\src\basic-go\webook\internal\repository\code.go -package=repomocks -destination=E:\GoProject\src\basic-go\webook\internal\repository\mocks\code.mock.go
	@mockgen -source=E:\GoProject\src\basic-go\webook\internal\repository\article\article.go -package=artrepomocks -destination=E:\GoProject\src\basic-go\webook\internal\repository\article\mocks\article.mock.go
	@mockgen -source=E:\GoProject\src\basic-go\webook\internal\repository\article\article_author.go -package=artrepomocks -destination=E:\GoProject\src\basic-go\webook\internal\repository\article\mocks\article_author.mock.go
	@mockgen -source=E:\GoProject\src\basic-go\webook\internal\repository\article\article_reader.go -package=artrepomocks -destination=E:\GoProject\src\basic-go\webook\internal\repository\article\mocks\article_reader.mock.go
	@mockgen -source=E:\GoProject\src\basic-go\webook\internal\repository\dao\user.go -package=daomocks -destination=E:\GoProject\src\basic-go\webook\internal\repository\dao\mocks\user.mock.go
	@mockgen -source=E:\GoProject\src\basic-go\webook\internal\repository\cache\user.go -package=cachemocks -destination=E:\GoProject\src\basic-go\webook\internal\repository\cache\mocks\code.mock.go
	@mockgen -source=E:\GoProject\src\basic-go\webook\pkg\ratelimit\types.go -package=limitmocks -destination=E:\GoProject\src\basic-go\webook\pkg\ratelimit\mocks\ratelimit.mock.go
	@go get github.com/redis/go-redis/v9
	@mockgen -package=redismocks -destination=E:\GoProject\src\basic-go\webook\internal\repository\cache\redismocks\cmdable.mock.go github.com/redis/go-redis/v9 Cmdable

	@mockgen -source=E:\GoProject\src\basic-go\webook\internal\service\sms\types.go -package=smsmocks -destination=E:\GoProject\src\basic-go\webook\internal\service\sms\mocks\types.mock.go

	@go mod tidy